<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8" language="java"
	import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/page/base.jsp"%>
<%@ taglib prefix="d" uri="/doone-comm-ui-tags"%>
<html>
	<head>
		<title>留言板回复</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link type="text/css" href="<%=path%>/manage/css/layout.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="<%=path%>/manage/css/Tooltip.css" />
        <link type="text/css" href="<%=path%>/manage/css/new_style.css" rel="stylesheet" />

		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery-1.4.4.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery-ui-1.8.11.custom.min.js"></script>
		<%-- 验证js Start --%>
		<script type="text/javascript" src="<%=path%>/manage/js/Tooltip.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.validate.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.validate.methods.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.validate.defaults.js"></script>
	</head>

	<script type="text/javascript">
	
	//回复留言
		function addContent(intFeedbackId,intUserId,intFeedbackType) {
		
		$("#intFeedbackId").attr("value",intFeedbackId);
		$("#intUserId").attr("value",intUserId);
		$("#intFeedbackType").attr("value",intFeedbackType);
			//打开dialog
			$("#contentDialog").dialog("open");
		}
	
	$(document).ready(function() {

		
		//加载googel map
		$("#contentDialog").dialog({
			autoOpen : false,
			width : 630,
			height : 300,
			modal : true,
			title : '回复留言',
			buttons : {
				"保存" : function() {
                    $("#contentForm").submit();
					$(this).dialog("close");

				},
				"取消" : function() {
					$(this).dialog("close");
				}
			},
			close : function() {
				$(this).dialog("close");
			}
		});		
	});
</script>
	<body>
		<div>
			<p class="sitemap">
				留言回复信息
			</p>
		</div>
		<div>
			<fieldset>
				留言标题：
				<table class="fullwidth" cellpadding="0" cellspacing="0" border="0">
					<s:iterator value="rootFeedList">
						<tr>
							<td width="70%">
								<s:if test="intAdminId!=0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</s:if>
								<s:property value="varFeedbackContent" />
							</td>
							<td align="right" style="float: right">
								<s:if test="intAdminId==0">
									<a href="javascript:addContent(<s:property value="intFeedbackId"/>,<s:property value="intUserId"/>,<s:property value="intFeedbackType"/>);">留言回复</a>
								</s:if>
							<td>
						<tr>
						<tr>

							<td></td>
							<td align="right" style="float: right">
								<s:property value="varUserName" />
								||
								<s:property value="datFeedbackDatetime" />
							</td>
						</tr>
					</s:iterator>

				</table>
			</fieldset>
			<div id="contentDialog" style="display: none;">
				<form action="<%=path%>/feedBack/addContent.action" method="post"
					id="contentForm">
					<s:hidden name="intFeedbackId" id="intFeedbackId"></s:hidden>
					<s:hidden name="intUserId" id="intUserId"></s:hidden>
					<s:hidden name="intFeedbackType" id="intFeedbackType"></s:hidden>
					<table class="fullwidth" cellpadding="0" cellspacing="0" border="1">
						<tr>
							<td>
								回复内容:
							</td>
						</tr>
						<tr>
							<td>
								<s:textarea name="content"></s:textarea>
							</td>
						</tr>
					</table>

				</form>

			</div>


		</div>


	</body>
</html>
